<h1>Listing images</h1>

<table>
  <tr>
    <th>Title</th>
    <th>Path</th>
    <th>Size</th>
    <th>Description</th>
    <th>Orders</th>
    <th>Event</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @images.each do |image| %>
  <tr>
    <td><%= image.title %></td>
    <td><%= image.path %></td>
    <td><%= image.size %></td>
    <td><%= image.description %></td>
    <td><%= image.orders %></td>
    <td><%= image.event_id %></td>
    <td><%= link_to 'Show', image %></td>
    <td><%= link_to 'Edit', edit_image_path(image) %></td>
    <td><%= link_to 'Destroy', image, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Image', new_image_path %>
